﻿using System;
namespace SF.Model
{
	/// <summary>
	/// 购物车信息
	/// </summary>
	[Serializable]
	public partial class sf_goods_cart
	{
		public sf_goods_cart()
		{}

        public sf_goods_cart(string add)
        {
            carNum = "CAR" + DateTime.Now.ToString("yyyyMMddHHmmssfff");
            userNum = "";
            goodsNum = "";
            addTime = DateTime.Now;
            price = 0;
            numbers = 0;
            totalPrice = 0;
            amountId = 0;
        }
		#region Model
		private long _id;
		private string _busniesenum;
		private string _appnum;
		private string _templatesnum;
		private string _carnum;
		private string _usernum;
		private string _goodsnum;
		private DateTime? _addtime;
		private decimal? _price;
		private int? _numbers;
		private decimal? _totalprice;
		private int? _amountid;
		/// <summary>
		/// 主键编号
		/// </summary>
		public long id
		{
			set{ _id=value;}
			get{return _id;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string busnieseNum
		{
			set{ _busniesenum=value;}
			get{return _busniesenum;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string appNum
		{
			set{ _appnum=value;}
			get{return _appnum;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string templatesNum
		{
			set{ _templatesnum=value;}
			get{return _templatesnum;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string carNum
		{
			set{ _carnum=value;}
			get{return _carnum;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string userNum
		{
			set{ _usernum=value;}
			get{return _usernum;}
		}
		/// <summary>
		/// 商品编号
		/// </summary>
		public string goodsNum
		{
			set{ _goodsnum=value;}
			get{return _goodsnum;}
		}
		/// <summary>
		/// 添加时间
		/// </summary>
		public DateTime? addTime
		{
			set{ _addtime=value;}
			get{return _addtime;}
		}
		/// <summary>
		/// 商品单价
		/// </summary>
		public decimal? price
		{
			set{ _price=value;}
			get{return _price;}
		}
		/// <summary>
		/// 商品数量
		/// </summary>
		public int? numbers
		{
			set{ _numbers=value;}
			get{return _numbers;}
		}
		/// <summary>
		/// 小计
		/// </summary>
		public decimal? totalPrice
		{
			set{ _totalprice=value;}
			get{return _totalprice;}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? amountId
		{
			set{ _amountid=value;}
			get{return _amountid;}
		}
		#endregion Model

	}
}

